/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package practicasUnidad1;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */



/**
 *
 * @author Lab
 */
public class test {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        String cad="3FF";
        System.out.println(cad);
        Integer a= new Integer(Integer.parseInt(cad,16));
        Double d= a.doubleValue();
        System.out.println("double "+d);

        Integer a2= d.intValue();
        String bin= a2.toBinaryString(a2);
        System.out.println("binario "+bin);

        Integer a3= Integer.parseInt(bin, 2);
        String oct=a3.toOctalString(a3);
        System.out.println("octal "+oct);

        Integer a4= Integer.parseInt(oct, 8);
        System.out.println("entero "+a4);

        System.out.println("Hexadecimal "+a4.toHexString(a));
    }

}
